<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title>电影类别</title>  
    
    <link rel="stylesheet" th:href="@{/css/layui.css}" media="all">
    <link rel="stylesheet" href="@{/css/pintuer.css}">
	<link rel="stylesheet" href="@{/css/admin.css}">
    <script src="../js/jquery-3.3.1.min.js"></script>
	<script th:src="@{/js/layui.js}"></script>
	<script type="text/javascript" th:src="@{/js/jquery.serializejson.js}"></script>
	<script th:src="@{/js/lay/modules/element.js}" charset="utf-8"></script>
    <script src="@{/js/pintuer.js}"></script>
    
    
    <script type="text/javascript">
	   	$(function(){
	   		$("[type='button']").click(function(){
	   			alert("进来了");
	   			var a = $("[class='form-x']").val();
	   			
	   			$.ajax({
					type:"get",
					url:"http://localhost:8080/cinemaProject/Fsort/fsortAdd",
					data:{
						"fsort":fsort
					},
					dataType:"json",
					success:function(data){
						console.log(data);
						var table = "<table class='layui-table'>";
						$.each(data,function(index,item){
							
						})
						table+="</table>";
						$("#appendDiv").append(table);
					},
					error:function(data) {
						alert("数据异常！");
					}
				})
	   		})
	   		
	    })
	</script>
</head>
<body>
	<div class="panel admin-panel">
	  <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>增加内容</strong></div>
	  <div class="body-content">
	    <form method="post" class="form-x" action="">  
	      <div class="clear"></div>
	      <div class="form-group">
	        <div class="label">
	          <label>电影类别：</label>
	        </div>
	        <div class="field">
	          <input type="text" class="input" name="s_title"/>
	        </div>
	      </div>
	      
	      <div class="form-group">
	        <div class="label">
	          <label>电影备注：</label>
	        </div>
	        <div class="field">
	          <textarea class="input" name="note" style=" height:90px;"></textarea>
	          <div class="tips"></div>
	        </div>
	      </div>
	     
	      <div class="form-group">
	        <div class="label">
	          <label></label>
	        </div>
	        <div class="field">
	          <button class="button bg-main icon-check-square-o" type="button"> 提交</button>
	        </div>
	      </div>
	    </form>
	  </div>
	</div>
</body>
</html>